package Week2.J0422;

import java.util.Arrays;
import java.util.Scanner;

public class 拼三角_xv {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t = scanner.nextInt();
        int[] arr = new int[6];

        while (t-- != 0) {
            for (int i = 0; i < 6; i++) {
                arr[i] = scanner.nextInt();
            }

            Arrays.sort(arr);

            if (arr[0] + arr[1] > arr[2] && arr[3] + arr[4] > arr[5] ||
                    arr[0] + arr[2] > arr[3] && arr[1] + arr[4] > arr[5] ||
                    arr[0] + arr[3] > arr[4] && arr[1] + arr[2] > arr[5] ||
                    arr[0] + arr[4] > arr[5]&& arr[1] + arr[2] > arr[3]) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
    }
}
